import 'package:fluttertoast/fluttertoast.dart';

class Validation {
  static bool validateAccount(String account) {
    if (account.isEmpty) {
      Fluttertoast.showToast(msg: '账号的长度不能为空');
      return false;
    }

    return true;
  }

  static bool validatePassword(String password) {
    if (password.isEmpty) {
      Fluttertoast.showToast(msg: '密码的长度不能为空');
      return false;
    }
    return true;
  }
}
